package config

import "io"

func NewFromReader(reader io.Reader, name, mode string) *Config {
	return &Config{
		StaticFileTypes: DefaultStaticFileTypes,
		SourceMode:      mode,
		File:            name,
		reader:          reader,
		Server:          "0",
	}
}
